"use strict";
cc._RF.push(module, '1ae94LAE35P6KLWVXn0cRea', 'TopContent');
// scripts/TopContent.js

"use strict";

var t = require;
var e = module;
var o = exports;

var _i,
    n = void 0 && (void 0).__extends || (_i = function i(t, e) {
  return (_i = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (t, e) {
    t.__proto__ = e;
  } || function (t, e) {
    for (var o in e) {
      Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
  })(t, e);
}, function (t, e) {
  function o() {
    this.constructor = t;
  }

  _i(t, e), t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
}),
    a = void 0 && (void 0).__decorate || function (t, e, o, i) {
  var n,
      a = arguments.length,
      r = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, i);else for (var s = t.length - 1; s >= 0; s--) {
    (n = t[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, o, r) : n(e, o)) || r);
  }
  return a > 3 && r && Object.defineProperty(e, o, r), r;
};

Object.defineProperty(o, "__esModule", {
  value: !0
});

var r = t("Util"),
    s = cc._decorator,
    l = s.ccclass,
    c = s.property,
    d = function (t) {
  function e() {
    var e = null !== t && t.apply(this, arguments) || this;
    return e.node_RedPoints = [], e.redPoint = null, e.node_morePanel = null, e.node_rank = null, e;
  }

  return n(e, t), e.prototype.start = function () {
    this.schedule(this.refreshRedPoint, 1), r.Util.event_dispatcher.register(this), this.node_rank.active = !r.Util.is_qg();
  }, e.prototype.onDestroy = function () {
    r.Util.event_dispatcher.remove(this);
  }, e.prototype.onEventBtnLottery = function () {
    this.onBtnLottery();
  }, e.prototype.onEventBtnDaily = function () {
    this.onBtnDaily();
  }, e.prototype.onEventBtnDepot = function () {
    this.onBtnDepot();
  }, e.prototype.onEventBtnTask = function () {
    this.onBtnTask();
  }, e.prototype.onBtnSign = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnSign", !0));
  }, e.prototype.onBtnActivity = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnActivity", !0));
  }, e.prototype.onBtnDaily = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnDaily", !0));
  }, e.prototype.onBtnExplore = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnExplore", !0));
  }, e.prototype.onBtnRank = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnRank", !0));
  }, e.prototype.onBtnTask = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnTask", !0));
  }, e.prototype.onBtnLottery = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnLottery", !0));
  }, e.prototype.onBtnDepot = function () {
    this.node.dispatchEvent(new cc.Event.EventCustom("HallBtnDepot", !0));
  }, e.prototype.onBtnShowMore = function () {
    this.node_morePanel.active = !this.node_morePanel.active;
  }, e.prototype.hindMore = function () {
    this.node_morePanel.active = !1;
  }, e.prototype.refreshRedPoint = function () {
    for (var t = !1, e = 0; e < this.node_RedPoints.length; e++) {
      var o = this.node_RedPoints[e];

      if (o.active) {
        t = o.active;
        break;
      }
    }

    this.redPoint.active = t;
  }, a([c([cc.Node])], e.prototype, "node_RedPoints", void 0), a([c(cc.Node)], e.prototype, "redPoint", void 0), a([c(cc.Node)], e.prototype, "node_morePanel", void 0), a([c(cc.Node)], e.prototype, "node_rank", void 0), a([l], e);
}(cc.Component);

o["default"] = d;

cc._RF.pop();